﻿@model List<FOModels.Product.ProductCategoryModels>
<div class="textwidget">
    <h3>Category</h3>
    <ul class="category">
        @foreach (var p in Model)
        {
            if (FOSystem.Utility.ConfigHelper.CountNewsByCate(p.ProductCID) > 0)
            {
            <li rel="rel-pro-@p.ProductCID">
                <a rel="rel-pro-@p.ProductCID" href="@Url.Action("NewsCate", "News", new { ProductCateName = FO.Models.Conver.ConvertToUnSign(p.Name.ToLower()), ProductCID = p.ProductCID })">@p.Name
                    <span class="category__count">@FOSystem.Utility.ConfigHelper.CountNewsByCate(p.ProductCID)</span>
                </a>
            </li>
            }
        }
    </ul>
</div>
